setCancelable

open fun setCancelable(cancelable: Boolean)(source)

Control whether the shown Dialog is cancelable. Use this instead of directly calling Dialog.setCancelable(boolean), because DialogFragment needs to change its behavior based on this.

Parameters

cancelable

If true, the dialog is cancelable. The default is true.